package org.dromara.vmp.service.redisMsg;

import org.dromara.common.core.domain.R;
import org.dromara.vmp.common.CommonCallback;
import org.dromara.vmp.gb28181.bean.SendRtpItem;

public interface IRedisRpcService {

    SendRtpItem getSendRtpItem(String sendRtpItemKey);

    R startSendRtp(String sendRtpItemKey, SendRtpItem sendRtpItem);

    R stopSendRtp(String sendRtpItemKey);

    long waitePushStreamOnline(SendRtpItem sendRtpItem, CommonCallback<String> callback);

    void stopWaitePushStreamOnline(SendRtpItem sendRtpItem);

    void rtpSendStopped(String sendRtpItemKey);

    void removeCallback(long key);
}
